import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '摄像头名称',
    align: "center",
    dataIndex: 'name'
  },
  {
    title: '端口',
    align: "center",
    dataIndex: 'port'
  },
  {
    title: '通道号',
    align: "center",
    dataIndex: 'channel'
  },
  {
    title: '账号',
    align: "center",
    dataIndex: 'account'
  },
  {
    title: '密码',
    align: "center",
    dataIndex: 'password'
  },
  {
    title: 'rtsp地址',
    align: "center",
    dataIndex: 'rtspAddress'
  },
  {
    title: '预设定',
    align: "center",
    dataIndex: 'presetPoint'
  },
  {
    title: '坐标',
    align: "center",
    dataIndex: 'coordinates'
  },
  {
    title: '摄像头图片',
    align: "center",
    dataIndex: 'avatar',
    customRender: render.renderImage,
  },
  {
    title: 'hlsUrl',
    align: "center",
    dataIndex: 'hlsUrl'
  },
  {
    title: 'hls地址',
    align: "center",
    dataIndex: 'hls'
  },
];

// 高级查询数据
export const superQuerySchema = {
  name: {title: '摄像头名称',order: 0,view: 'text', type: 'string',},
  port: {title: '端口',order: 1,view: 'number', type: 'number',},
  channel: {title: '通道号',order: 2,view: 'number', type: 'number',},
  account: {title: '账号',order: 3,view: 'text', type: 'string',},
  password: {title: '密码',order: 4,view: 'text', type: 'string',},
  rtspAddress: {title: 'rtsp地址',order: 5,view: 'text', type: 'string',},
  presetPoint: {title: '预设定',order: 6,view: 'number', type: 'number',},
  coordinates: {title: '坐标',order: 7,view: 'text', type: 'string',},
  avatar: {title: '摄像头图片',order: 8,view: 'image', type: 'string',},
  hlsUrl: {title: 'hlsUrl',order: 9,view: 'text', type: 'string',},
  hls: {title: 'hls地址',order: 10,view: 'text', type: 'string',},
};
